home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12007 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news1.erols.com!newsmaster@erols.com
  2. From: Chris Cobb <ccobb@cseg.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: compile in a way to get smaller a.out? include less???
  5. Date: 17 Mar 1996 18:03:12 GMT
  6. Organization: CSEG, Inc.
  7. Message-ID: <4ihk50$41c@news5.erols.com>
  8. References: <4ifovo$pem@math.rutgers.edu>
  9. NNTP-Posting-Host: ccobb.erols.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22KIT (Windows; U; 16bit)
  14.  
  15. lukeh@math.rutgers.edu (Luke Higgins) wrote:
  16. >
  17. >I am brand new to C++ (and fairly new to C even.)  I write a 4 line
  18. >"hello world" program using iostream.h and my a.out is 408k! Is there
  19. >anyway to get the compiler to just include what it needs to instead of
  20. >the whole iostream.h?
  21. >
  22.  
  23. Some compilers allow you to skip the normal startup code which opens 
  24. stdout, et al.  However, you would then be required to make direct OS 
  25. calls and your code would be completely platform dependent.  Check your
  26. compiler documentation about C/C++ runtime support.
  27.  
  28. Chris
  29.  
  30.  
  31.